import BaseService from './BaseService.js'
export default class HomeService extends BaseService{
  /**
   * 获取首页数据
   * @param data object
   * @returns {Promise<*>}
   */
  async getHomeData(data) {
    return await this.api.post({
      url: this.config.ajaxUrl.UrlList.index,
      data: data
    })
  }
  async getListData(data) {
      return await this.api.post({
        url: this.config.ajaxUrl.UrlList.list,
        data: data
      })
    }
 async getInfoData(data) {
    return await this.api.post({
      url: this.config.ajaxUrl.UrlList.info,
      data: data
    })
  }
}
